package org.lanzier.system.service;

import org.lanzier.common.form.RequestDataForm;
import org.lanzier.common.form.ResponseDataForm;
import org.lanzier.common.service.impl.AbstractService;
import org.springframework.stereotype.Service;

/**
 * @author lansb
 * 用户登录service
 */
@Service("userLoginService")  
public class UserLoginService extends AbstractService { 
	public ResponseDataForm service(RequestDataForm requestDataForm) throws Exception {
		//实现如下:
//		Map<String, String> simpleRequestMap = requestDataForm.getSimpleRequestMap();
//		String usercode = simpleRequestMap.get("usercode");
//		String passwd = simpleRequestMap.get("passwd");
//		Map<String, Object> urlsqlMap = requestDataForm.getUrlSqlMap();
//		String execSql = MapUtils.getString(urlsqlMap, "EXEC_SQL");
		//Map map = jdbcDao.queryForMap(execSql, new Object[]{usercode, passwd});
//		if(map == null || map.size() == 0) {//login faiule
//			List<String> errorList = new ArrayList<String>();
//			errorList.add("登录失败，用户名或密码有误，请重新输入！");
//		} else {
//			//request.getSession().setAttribute(Environment.LOGIN_INFO, map);
//		}
		return null;
	}

}
